package com.ls.designModel;

/**
 * 内部类实现单例模式
 */
public class InnerSingle {

    private InnerSingle(){

    }

    private static class Holder{
        static InnerSingle INSTANCE = new InnerSingle();
    }

    public static InnerSingle getInstance(){
        return Holder.INSTANCE;
    }

}
